package com.yn.iotxiao.sql.entity.Record;

import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.util.Date;

@Data
@Table(name = "PassRecord", comment = "通行记录")
public class PassRecord {

    @IsKey
    @IsAutoIncrement
    private long serid;
    @Column
    private String ip;
    @Column
    private String macaddress;
    @Column
    private String datetime;
    @Column
    private String name;
    @Column
    private String employeeno;
    @Column
    private String pictureurl;
    @Column
    private String eventtype;

    @Column
    private String deviceserial;
    @Column(name = "CREATETIME",comment = "录入时间")
    @ColumnType(MySqlTypeConstant.TIMESTAMP)
    @DefaultValue("CURRENT_TIMESTAMP")
    private Date createTime;
}
